import { defineStore } from 'pinia'

export default defineStore('user', {
	state: ()=> ({
		userInfo: {},
		token: {},
		isTour: false,
	}),
	getters: {

	},
	actions: {
		setUserInfo(userInfo) {
            this.userInfo = userInfo
        },
		setToken(userToken) {
			this.token = userToken
		},
		setTour(isTour) {
			this.isTour = isTour
		}
	},
	persist: {
		key: 'user',
		storage: window.localStorage,
	}
})